import request from '@/utils/request'

export function createpermissions(data) {
  return request({
    url: '​/api​/permissions​/permissions',
    method: 'post',
    data
  })
}

export function getTreepermissions(data) {
  return request({
    url: '​/api​/permissions​/tree-permissions',
    method: 'get',
    params: data
  })
}

export function deletepermissions(data) {
  return request({
    url: '​/api​/permissions​/permissions',
    method: 'delete',
    params: data
  })
}

export function updatepermissions(data) {
  return request({
    url: '​/api​/permissions​/permissions',
    method: 'put',
    data
  })
}
